var pathname = document.location.pathname;
var projectName = pathname.substr(0, pathname.substr(1).indexOf("/") + 1);
console.log("projectName:"+projectName);

/*根据股票code获取值*/
function getSingleValueByCode(url, stockCode) {
	url = url + "&&stockCode=" + stockCode;
	$.getJSON(url, function(result) {
	    if(result.data.length < 1) return;
		renderChart(result.stockName, result.title, result.data, result.maxValue, result.minValue);
	});
}
